package join;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.util.ToolRunner;

public class Main {
	public static void main(String[] args) throws Exception {
		int res = 0;
		for (long i = 20100402; i < 20100430; i++) {
			args[0] = String.valueOf(i);
			res = ToolRunner.run(new Configuration(),
					new ClickJoinUserSimple(), args);
			res = ToolRunner.run(new Configuration(),
					new ClickUserInnerJoinAuction(), args);
		}
		for (long i = 20100505; i < 20100520; i++) {
			args[0] = String.valueOf(i);
			res = ToolRunner.run(new Configuration(),
					new ClickJoinUserSimple(), args);
			res = ToolRunner.run(new Configuration(),
					new ClickUserInnerJoinAuction(), args);
		}
		// res = ToolRunner.run(new Configuration(), new
		// ClickUserAuctionInnerJoinPv(), args);
		System.exit(res);
	}
}
